Kanzi  3.9.7
Java API
ResourceManager.ProtocolHandler Interface Reference

ProtocolHandler allows implementing custom resource loading for a specific protocol. More...

Classes

class  Result
 Holds the result of ProtocolHandler handle callback. More...
 

Public Member Functions

Result handle (ResourceManager resourceManager, String url, String protocol, String hostname, String path)
 Takes a resource URL and either creates a new resource or a load task that can create the resource. More...
 

Detailed Description

ProtocolHandler allows implementing custom resource loading for a specific protocol.

See ResourceManager#registerProtocolHandler.

Member Function Documentation

Result handle ( ResourceManager  resourceManager,
String  url,
String  protocol,
String  hostname,
String  path 
)

Takes a resource URL and either creates a new resource or a load task that can create the resource.

Parameters
resourceManagerThe resource manager.
urlThe full URL of the resource in the form of "protocol://hostname/path".
protocolExtracted protocol part of the resource URL.
hostnameExtracted hostname part of the resource URL.
pathExtracted path part of the resource URL.
Returns
An instance of ProtocolHandler.Result holding the created Resource or LoadTask.